#ifndef _VISUAL_COMPONENT_H
#define _VISUAL_COMPONENT_H

#include "..\Components\IComponent.h"
#include "..\Graphics\Sprite.h"

class VisualComponent : public IComponent
	{
	public:
		virtual const std::string getType() { return "VisualComponent"; }
		virtual const std::string getFamilyType() { return "VisualComponent"; }
	
	public:
		VisualComponent(unsigned int p_view, const std::string& id, float p_layer = 1.0f);
		VisualComponent();
		virtual ~VisualComponent();
	
		void update(const GameTime& p_gameTime){}
		void init();
		void translate(float x, float y);
		vn::Sprite* getSprite() { return m_sprite; }

	private:
		vn::Sprite* m_sprite;
	};

#endif //_VISUAL_COMPONENT_H